/**
 * 作者: hxl
 * 日期: 2024-10-18 09:35:52
 * 备注: 秘书基因表
 */
package com.motu.monstercity.server.game.commondata.secretary;

import io.vertx.core.json.JsonObject;

public class SecretaryIdentityModel {
    protected int id; // id
    protected int level; // 基因等级
    protected String name; // 名称
    protected String des; // 描述
    protected int icon; // 图标
    protected int needFavorite; // 需要喜爱值达到解锁 (喜爱值为secretary_main表favorite_value字段)
    protected int needCharm; // 需要魅力值
    protected int needBeautyNum; // 拥有秘书数量
    protected int childTalent; // 生娃最高品质

    public SecretaryIdentityModel() {
    }

    public SecretaryIdentityModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        level = obj.containsKey("level") ? obj.getInteger("level") : 0;
        name = obj.containsKey("name") ? obj.getString("name") : "";
        des = obj.containsKey("des") ? obj.getString("des") : "";
        icon = obj.containsKey("icon") ? obj.getInteger("icon") : 0;
        needFavorite = obj.containsKey("need_favorite") ? obj.getInteger("need_favorite") : 0;
        needCharm = obj.containsKey("need_charm") ? obj.getInteger("need_charm") : 0;
        needBeautyNum = obj.containsKey("need_beauty_num") ? obj.getInteger("need_beauty_num") : 0;
        childTalent = obj.containsKey("child_talent") ? obj.getInteger("child_talent") : 0;
    }

    public int getId() {
        return id;
    }

    public int getLevel() {
        return level;
    }

    public String getName() {
        return name;
    }

    public String getDes() {
        return des;
    }

    public int getIcon() {
        return icon;
    }

    public int getNeedFavorite() {
        return needFavorite;
    }

    public int getNeedCharm() {
        return needCharm;
    }

    public int getNeedBeautyNum() {
        return needBeautyNum;
    }

    public int getChildTalent() {
        return childTalent;
    }

}
